<?php
/**
 * Created by PhpStorm.
 * User: leo
 * Date: 2017/8/13
 * Time: 14:54
 */

namespace app\common\model;

use think\Model;

class Staff extends Model
{
	public function grade()
	{
		return $this->belongsTo('Grade','grade_id','id');
	}
	public function stafftype()
	{
		return $this->belongsTo('staffType','type','id');
	}
	public function province()
	{
		return $this->belongsTo('province','province_id','id');
	}
	public function comment()
	{
		return $this->hasMany('Comment');
	}
}